#include"Sort.h"


void insertarr(int* arr, int n)
{
	for (int i = (n - 2) / 2; i >= 0; i--)
	{
		AddJustDowm(arr, n, i);
	}
	ArrPrint(arr, n);
	int emd = n - 1;
	while (emd)
	{
		Swap(&arr[0], &arr[emd]);
		AddJustDowm(arr, emd, 0);
		emd--;
	}
	ArrPrint(arr, n);
}
void test1()
{
	int arr[] = { 1,2,3,4,5,6,7,8,9,0,0 };
	int n = sizeof(arr) / sizeof(int);
	insertarr(arr, n);
}
int main()
{
	test1();
	return 0;
}